package com.zh.view

import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.*
import androidx.compose.runtime.Composable
import androidx.compose.ui.awt.ComposeWindow
import com.zh.view.pane.*
import com.zh.view.component.NavigationItem


/**
 *
 * @author Zhou
 * @date 18:29 2025/6/1
 */

/*菜单项*/
val menuItems = listOf(
    NavigationItem("task-send", "传输任务", Icons.Default.CloudUpload),
    NavigationItem("task-receive", "接收列表", Icons.Default.CloudDownload),
    NavigationItem("chat", "聊天", Icons.Default.ChatBubble, 5),
    NavigationItem("divider1", "", Icons.Default.Star, isDivider = true),
    NavigationItem("create", "创建", Icons.Default.Add)
)

@Composable
fun router(key: String, window: ComposeWindow) {
    // TabContent根据路由进行条件渲染
    return when (key) {
        "task-send" -> TaskSendScene()
        "task-receive" -> TaskReceiveScene()
        "chat" -> ChatPane()
        "create" -> FileSelectorDialogExample(window)
        else -> NotFoundScreen()
    }
}